<template>
  
<div id="app">
  请输入姓名：<input type="text" v-model="name">

  <div>姓名:{{ name }}</div>
</div>
    

</template>


<script setup>
  import {ref} from 'vue'

  const name = ref('LongSir')
</script>

<!-- <script type="module">
   import {createApp,ref} from 'https://unpkg.com/vue@3/dist/vue.esm-browser.js'

        createApp({
            setup(){
                const name =ref('LongSir')
                return {
                    name
                }
            }
        }).mount('#app')


</script> -->